package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class MinusTerm implements NumericValueExpression {

    private int beginIndex;
    private int endIndex;
    private NumericValueExpression numericValueExpression;
    private Term term;

    public MinusTerm(NumericValueExpression numericValueExpression,
                     Term term) {
        this.beginIndex = numericValueExpression.getBeginIndex();
        this.endIndex = term.getEndIndex();
        this.numericValueExpression = numericValueExpression;
        this.term = term;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public NumericValueExpression getNumericValueExpression() {
        return numericValueExpression;
    }

    public Term getTerm() {
        return term;
    }
    
}
